Geoget Script Localization Tools
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Usage:

1. Locate folder with your script. (<datadir>\script\<yourscript>\)
2. Unpack this package here, include subfolders! So, it create path:
   <datadir>\script\<yourscript>\locale\tools
3. Go to locale\tools subfolder.
4. Edit content of lang.txt. Place here language codes of translations, 
   what you wish to use. Each one to separate line.
5. Edit files.txt file. Here is list of files, what will be scanned 
   for translation strings. Default is all PAS and all GFM files in folder
   with your script.
6. Any time, when you want to update your translations, run lupdate.bat. 
   It create or opdate translation sources. Translations are stored in folders:
   <datadir>\script\<yourscript>\locale\<langcode>\LC_MESSAGES\
7. Get some PO file editor (for example from http://www.poedit.net/) 
   and use it for edit and compile created default.PO files inside 
   <langcode>\LC_MESSAGES\ subfolders.
   
   
Usage in the Geoget scripts:

- is used same language as is used in Geoget. You can change it in script.
- defaultly are used translations on the location:
  <datadir>\script\<yourscript>\locale\<langcode>\LC_MESSAGES\ But you can 
  change it in script.
- defaultly is used text domain 'default', but you can change it in script.
- All GFM forms are translated before script run.
- Text outside forms must be translated explicitly by calling special function 
  named: "_". Instead s:='Ahoy!'; use this s:=_('Ahoy!');

  
Script API functions:

function _(const szMsgId: string): string
Translating string to localized string.

procedure textdomain(const szDomain: string)
Use new textdomain for translating.

function getcurrenttextdomain: string
Return currently used textdomain.

procedure bindtextdomain(const szDomain: string; const szDirectory: string)
Add new possible textdomain and specify directory with translation files.

procedure UseLanguage(LanguageCode: string)
Change language.

function GetCurrentLanguage:string
Get currently used language.

procedure RetranslateComponent(AnObject: TComponent; const TextDomain:string)
Translate some component on the form. You can pass form too, it translate 
full form. 

function GetTranslatorNameAndEmail:widestring
Return information about translator.

Have a fun!
     
